Emotion Detection

ABSTRACT

Estimating emotion may include obtaining an image of at least part of a face, and applying, to the image, an expression convolutional neural network (“CNN”) to obtain a latent vector for the image, where the expression CNN is trained from a plurality of pairs each comprising a facial image and a 3D mesh representation corresponding to the facial image. Estimating emotion may further include comparing the latent vector for the image to a plurality of previously processed latent vectors associated with known emotion types to estimate an emotion type for the image.

BACKGROUND

This disclosure relates generally to image processing. More particularly, but not by way of limitation, this disclosure relates to techniques and systems for estimating an emotion from an image of a face.

Computerized characters that represent and are controlled by users are commonly referred to as avatars. Avatars may take a wide variety of forms including virtual humans, animals, and plant life. Some computer products include avatars with facial expressions that are driven by a user's facial expressions. One use of facially-based avatars is in communication, where a camera and microphone in a first device transmits audio and real-time 2D or 3D avatar of a first user to one or more second users such as other mobile devices, desktop computers, videoconferencing systems and the like. Known existing systems tend to be computationally intensive, requiring high-performance general and graphics processors, and generally do not work well on mobile devices, such as smartphones or computing tablets. Further, existing avatar systems do not generally provide the ability to communicate nuanced facial representations or emotional states.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows, in flowchart form, an avatar generation and use operation in accordance with one or more embodiments.

FIG. 2 shows a neutral expression model generation operation in accordance with one or more embodiments.

FIG. 3 shows an auto-encoder neural network training operation in accordance with one or more embodiments.

FIG. 4 shows an auto-encoder neural network training operation in accordance with one or more additional embodiments.

FIG. 5 shows a convolutional neural network (CNN) training operation in accordance with one or more embodiments.

FIG. 6 shows, in flowchart form, a neutral expression input-to-latent variable-to-output mapping data acquisition operation in accordance with one or more embodiments.

FIG. 7 shows, in flowchart form, an expression model generation operation in accordance with one or more embodiments.

FIG. 8 shows, in flowchart form, yet another auto-encoder neural network training operation in accordance with one or more embodiments.

FIG. 9 shows an avatar manipulation operation in another one or more embodiments.

FIG. 10 shows another neural network training operation in accordance with one or more embodiments.

FIG. 11 shows a specific user's neutral expression mesh generation operation in accordance with one or more embodiments.

FIG. 12 shows, in flowchart form, a specific user's neutral expression mesh generation operation in accordance with one or more embodiments.

FIG. 13 shows, in flowchart form, a use case in accordance with one or more embodiments.

FIG. 14 shows an illustrative mel-frequency cepstrum (MFC).

FIG. 15 shows an avatar system in accordance with one or more embodiments.

FIG. 16 shows, in flow chart form, a technique for estimating emotion, according to one or more embodiments.

FIG. 17 shows an example depiction of a Voronoi Diagram plotting latent vectors, according to one or more embodiments.

FIG. 18 shows, in block diagram form, a multi-function electronic device in accordance with one or more embodiments.

FIG. 19 shows, in block diagram form, a computer system in accordance with one or more embodiments.

DETAILED DESCRIPTION

This disclosure pertains to systems, methods, and computer readable media to improve the operation of graphic modeling systems. In general, techniques are disclosed for providing an avatar personalized for a specific person based on known data from a relatively large population of individuals and a relatively small data sample of the specific person. More particularly, techniques disclosed herein employ auto-encoder neural networks in a novel manner to capture latent-variable representations of “neutral” and “expression” facial models. Such models may be developed offline and stored on individual devices for run- or real-time use (e.g., portable and tablet computer systems as well as mobile/smart-phones). Based on a very limited data sample of a specific person, additional neural networks (e.g., convolutional-neural-networks, CNNs) or statistical filters (e.g., a Kalman filter) may be used to selectively weight latent variables of a first neural network model to provide a realistic neutral avatar of the person. This avatar, in turn, may be used in combination with the expression neural network and driven by audio and/or visual input during real-time operations to generate a realistic avatar of the specific individual; one capable of accurately capturing even small facial movements. In other embodiments, additional variables may also be encoded (e.g., gender, age, body-mass-index, ethnicity). In one embodiment, additional variables encoding a u-v mapping may be used to generate a model whose output is resolution-independent. In still other embodiments, different portions of a face may be modeled separately and combined at run-time to create a realistic avatar (e.g., face, tongue and lips).

In one or more embodiments, an emotion depicted in a 2D image may be estimated based on data arising from the training of the expression auto-encoders. Specifically, when training the auto-encoders, a set of pairs of images with latent vectors are obtained (e.g., the latent vectors are used in the training process to obtain the 3D mesh representation). The latent vectors may represent 3D features corresponding to expression. According to one or more embodiments, a neural network, such as an expression CNN, may be trained to estimate emotions from the latent vectors. Thus, an image may be input into the expression CNN to estimate a latent vector, and one or more emotions may be estimated from the image based on the comparison of latent vectors. In one or more embodiments, the estimated expression(s) may determine how functionality of a system is modified. For example, the estimated expression may be used as input into applications on a system, or may be presented to a user, such by audio or display on a system.

In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the disclosed concepts. As part of this description, some of this disclosure's drawings represent structures and devices in block diagram form in order to avoid obscuring the novel aspects of the disclosed concepts. In the interest of clarity, not all features of an actual implementation may be described. Further, as part of this description, some of this disclosure's drawings may be provided in the form of flowcharts. The boxes in any particular flowchart may be presented in a particular order. It should be understood however that the particular sequence of any given flowchart is used only to exemplify one embodiment. In other embodiments, any of the various elements depicted in the flowchart may be deleted, or the illustrated sequence of operations may be performed in a different order, or even concurrently. In addition, other embodiments may include additional steps not depicted as part of the flowchart. Moreover, the language used in this disclosure has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter, resort to the claims being necessary to determine such inventive subject matter. Reference in this disclosure to “one embodiment” or to “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the disclosed subject matter, and multiple references to “one embodiment” or “an embodiment” should not be understood as necessarily all referring to the same embodiment.

It will be appreciated that in the development of any actual implementation (as in any software and/or hardware development project), numerous decisions must be made to achieve a developers' specific goals (e.g., compliance with system- and business-related constraints), and that these goals may vary from one implementation to another. It will also be appreciated that such development efforts might be complex and time-consuming, but would nevertheless be a routine undertaking for those of ordinary skill in the design and implementation of graphics modeling systems having the benefit of this disclosure.

Referring to FIG. 1 , avatar generation operation 100 in accordance with one or more embodiments may include two phases. In phase-1 105 generic modeling data is gathered. In phase-2 110 that data, in combination with a limited amount of person-specific data, may be used to generate a high-quality avatar representative of that person. In accordance with this disclosure, phase-1 105 can begin with the offline or a priori generation of a neutral expression model based on a population of images (block 115). The neutral expression model may be alternately referred to as an identity model. The neutral expression model may correspond to a particular geometry of a user's face in a neutral pose (i.e. a pose that lacks expression). The neutral expression model from block 115 may then be used to train a convolutional neural network (CNN) for use during run-time operations. The CNN can be used to process streaming input such as video and/or audio (block 120). If desired, optional conditional variables may be applied to the neutral expression model to further refine the model's output. Illustrative conditional variables include, but are not limited to, gender, age, body mass index, and the like. In one or more embodiments, incorporating conditional variables into the neutral expression model may enable the model to better differentiate between facial characteristics associated with such factors as age, gender, body mass index, and the like.

Similar multi-person data may also be used to train or generate an expression model off-line or a priori (block 125). That is, the expression model may indicate a particular geometry of a user's face in an expressive state. Similar to above, if desired, optional conditional variables may be applied to the expression model to further refine the model's output (block 130). Illustrative conditional variables include, but are not limited to, gender, age, body mass index, as well as emotional state. That is, conditional variables may be incorporated into the expression model to better refine characteristics of various emotional states in the model, as well as other contributing characteristics, such as age, gender, and the like. The neutral expression model, the expression model and the CNN generated during Phase-1 105 operations may be stored (arrow 135) on electronic device 140. Once deployed in this manner, phase-2 110 can begin when a device's image capture unit(s) or camera(s) are used to acquire a relatively limited number of images of a specific person (block 145). Images of the specific person (e.g., a video stream) may be applied to the prior trained CNN to obtain the specific user's neutral expression model (block 150). As described later, audio streams may also be used to train a neural network expression model. In some embodiments the specific user's neutral expression model may be encoded and stored for future use. In one embodiment a user's neutral expression model may be represented as a mesh network. At run-time when the specific user is communicating with a second person via an application that employs an avatar, real-time images and/or audio may be captured of the specific user (block 155) and used to drive, in combination with the individual's neutral expression model, the prior developed expression model (block 160). The resulting animated avatar may be transmitted (arrows 165) to distal electronic device 170 and displayed. In one or more embodiments, obtaining separate neutral “identity” models and expression models may be more efficient than generating an avatar from a single model that considers identity and expression. Applying the expression model to the neutral expression “identity” model may provide a more streamlined and robust avatar system. As an example, if a user places their hand or other object in front of their face as they are utilizing the system, the separate expression model and neutral expression model may allow the system to fall back to the user's neutral face for a part of the face that is being obscured (where expression data is obscured). If a single model were used, the entire avatar may be degraded, or a generic face or portion of the face may be utilized, instead of the user's particular face or facial features.

Referring to FIG. 2 , in one or more embodiments neutral expression model generation operation 115 begins with the acquisition of neutral images 200 from a relatively large number of individuals (block 205). As used here, the phrase “neutral image” means an image of an individual having a neutral expression (e.g., not happy, not sad, not excited, not fearful, etc.). Images 200 may, for example, be obtained via a photogrammetry or stereophotogrammetry system, a laser scanner or an equivalent capture method. Each neutral expression image 200 may be converted into a three-dimensional (3D) mesh representation 210 (block 215) and used to train auto-encoder neural network 220 (block 225). From auto-encoder neural network 220, generic neutral expression model 230 can be identified (block 235).

Referring to FIG. 3 , in one or more embodiments auto-encoder neural network training operation 225 can apply each neutral expression 3D mesh from the collection of neutral expression 3D meshes 210 (one at a time to input layer 300) to train auto-encoder neural network 220 to generate (at output layer 305) output meshes 310 (one for each input mesh). Auto encoder neural network 220 may include a traditional auto-encoder or a variational auto-encoder. The variational auto-encoder may be trained in a probabilistic manner. In one embodiment, auto-encoder neural network 220 employs unsupervised learning technology to discover a function ƒ(x)={circumflex over (x)}, where x represents an input (e.g., one of meshes 210) and {circumflex over (x)} represents an output (e.g., one of meshes 310). Training causes auto-encoder 220 to learn the identity function so that x≈{circumflex over (x)}. By limiting the number of hidden units with respect to the number of input and output units, auto-encoder 220 can determine or identify a “compressed” representation of its input. As used here, the phrase “hidden units” refers to any layer of units within auto-encoder 220 that is between input layer 300 and output layer 305. By way of example, if there are 15,000 nodes in each input mesh (each node representing a 3D point), and 15,000 nodes in each output mesh, but only 15, 25, 30 or 50 nodes in a selected (hidden) layer within auto-encoder 220 (e.g., layer 315), the value of those nodes must represent or encode each input mesh's corresponding 15,000 node output mesh. When trained, the nodes of selected hidden layer 315 (e.g., that layer with the smallest number of nodes) represent the latent variables of the neural network system. Once auto-encoder neural network 220 has been trained, its decoder portion may be retained and locked (so that its internal node values no longer change or adapt to input) to form generic neutral expression model 230.

Referring to FIG. 4 , in another embodiment auto-encoder neural network 220 may be trained with a transformed version of input mesh representations 210. As shown, standard mesh 400 can be determined from the collection of neutral expression meshes 210 (block 405). In some embodiments, each point in standard mesh 400 is the mean or average value of all of the values from the corresponding points in all the neutral expression meshes 210. In other embodiments, each point in standard mesh 400 is the median value of all of the values from the corresponding points in all the neutral expression meshes 210. Other transformations may be used based on the target use of the generated model and may, or may not, include or use all of the neutral expression meshes 210. Standard mesh 400 may then be combined with (e.g., subtracted from) each neutral expression mesh 210 (one at a time) via operator 410 to generate delta mesh 415. Delta mesh 415 may be used to train auto-encoder neural network 220 (block 225). In this approach, auto-encoder neural network 220 is trained to learn the differences between standard mesh 400 and each of the neutral expression meshes 210. In one or more embodiments, operator 410 may calculate the deltas as x, y, z values in Euclidian space, or as deltas transformed into an alternative coordinate frame, such as a cylindrical or spherical coordinate system.

Referring to FIG. 5 , CNN training operation 120 in accordance with one or more embodiments applies each neutral expression image (from the collection of neutral expression images 200) to the input layer of CNN 500. In the particular embodiments described herein, generic neutral expression model 230 corresponds to the decoder portion of fully-trained auto-encoder neural network 220 that has been “locked down” (see discussion above). As a consequence, input-to-latent variable-to-output mapping data from fully trained auto-encoder neural network 220 can be used to train CNN 500.

Referring to FIG. 6 , neutral expression input-to-latent variable-to-output mapping data acquisition operation 600 begins by selecting a first input mesh from the collection of input meshes 210 (block 605). The selected mesh is then applied to fully-trained auto-encoder neural network 220's input layer (block 610), where after the input mesh's input values at each input node in input layer 300, the resulting latent variable values at each node in selected hidden layer 315, and the resulting output values for each output node in output layer 305 may be recorded (block 615). If all input meshes from the collection of input meshes 210 have been applied in accordance with block 610-615 (the “YES” prong of block 620), the recorded input-to-latent variable-to-output mapping data 625 is complete. If at least one input mesh has not been applied in accordance with block 610-615 (the “NO” prong of block 620), a next input mesh can be selected (block 630), where after operation 600 continues at block 610. In some embodiments, photogrammetry or stereophotogrammetry operations may include the ability to obtain camera azimuth and elevation data. This data may also be used during CNN training procedure 120. Alternatively, CNN 500 may be trained using synthetically generated images for a large number of subjects wherein viewing angles and lighting conditions may also be encoded and used during CNN training operation 120.

Referring to FIG. 7 , in one or more embodiments expression model generation operation 125 can proceed along in much the same manner as neutral expression model generation operation 115. First, expression images 700 from a relatively large number of individuals may be acquired (block 705). As used here, the phrase “expression image” means an image of an individual having a non-neutral expression (e.g., happy, sad, excited, fearful, questioning, etc.). By way of example, images 700 may be obtained via a photogrammetry or stereophotogrammetry system, a laser scanner or an equivalent capture method. Each expression image 700 may be converted into an expressive 3D mesh representation 710 (block 215) and used to train another auto-encoder neural network 720 (block 725). From auto-encoder neural network 720, expression model 730 can be identified (block 735). As before, expression model 730 can be the “decoder” portion of fully-trained auto-encoder neural network 720 that has been locked so that its internal node values no longer change or adapt to input.

Referring to FIG. 8 , in one embodiment auto-encoder neural network 720 may be trained with a transformed version of input mesh representations 710. As shown, standard mesh 400 (see discussion above) can be combined with (e.g., subtracted from) each expression mesh 710 (one at a time) via operator 800 to generate delta mesh 805. Delta mesh 805, in turn, may be used to train auto-encoder neural network 720 (block 725). In this approach, auto-encoder neural network 720 is trained to learn the differences between the neutral mesh for that identity—and each of the expression meshes 210.

Referring to FIG. 10 , optional conditional variables may be used to generate expression model 1000 to further refine the model's output (block 130). To accomplish this, expression input 1005 (e.g., meshes 710 or delta meshes 805) to latent variable to output mapping data may be acquired in the same manner as described above with respect to FIG. 6 . Desired conditional variables may then be identified and used to, again, train auto-encoder 720. As shown, expression input 1005 may be applied to auto-encoder 720'S input layer 1010 in combination with selected conditional variables 1015 and 1020. Selected conditional variables are also applied to chosen hidden layer 1025. Thereafter training of auto-encoder 720 proceeds as described above with respect to FIGS. 7 and 8 . Illustrative conditional variables include, but are not limited to, gender, age, body mass index, emotional state (e.g., happy, sad, confused), camera azimuth and elevation data.

One alternative form of the decoder network is the addition of a UV mapping. A UV mapping is a known technique to create a two-dimensional (2D) reference value for each point on a 3D mesh. Since UV mappings are a property of the mesh, and the mesh topology is the same for all images in meshes 1005, the UV mapping is the same for all captured images. In light of this recognition, the use of UV values as inputs may be used to generate a model whose output is resolution independent. By way of example, consider FIG. 9 in which an input image is captured (block 900), converted to a mesh representation (block 905), and the mesh value used to identify corresponding latent variable values (block 910) which are then applied to single-output expression model 915. A particular point in the mesh is then selected for which output is to be generated (block 920), its corresponding UV mapping value determined (block 925) and applied to single-output expression model 915. Model output 930 corresponds to the selected node in the input image's 3D mesh as determined by expression model 915. If the desired output resolution is the same as the input meshes resolution, operations 920 and 925 may be repeated for every node in the input mesh. If the desired output resolution is one-half the input meshes resolution, operations 920 and 925 may be repeated for every other node in the input mesh. If the desired output resolution is one-tenth the input meshes resolution, operations 920 and 925 may be repeated for every tenth node in the input mesh.

As described above, the models generated per FIG. 1 (blocks 115-130) are based on a population of known images and, as such, may be considered baseline or generic in nature. Such models may be stored on a user's electronic device (e.g., a smart-phone or tablet computer system as indicated at 135 in FIG. 1 ) and updated or modified in real-time in accordance with this disclosure. Referring to FIG. 11 , a specific user's neutral expression mesh generation operation 1100 in accordance with one embodiment begins by obtaining a relatively small number of images 1105 such as a short video sequence (block 1110) that, frame-by-frame may be applied to CNN 500 (block 1115) whose output drives generic neutral expression model 230 (block 1120). The output of which is the specific user's neutral mesh 1125. Mesh 1125 may be stored in the device's memory for subsequent use, may be generated anew for each use, or may be generated and stored for some period of time, after which it can be deleted. If image sequence 1105 comprises 50 frames or images, user-specific neutral mesh 1125 may be the average or mean of the 50 corresponding output meshes (e.g., output from generic neutral expression model 230). Other combinations of the generated output meshes may also be used (e.g., median).

Referring to FIG. 12 , a specific user's neutral expression mesh generation operation 1200 in accordance with another approach begins by obtaining a relatively small number of images of the specific person (block 1205). By way of example, the user could use their smart-phone to capture a few seconds of video while moving the device's camera around their face and/or head. This process could provide a relatively large collection of images; 300 frames for 10 seconds of capture at 30 frames-per-second (fps), along with camera angles for each image from both CNN 500 and the device's inertial measurement unit (IMU). Images from this set could be culled so as to end up with a reasonable number of images. For example, of the 300 frames perhaps only every fifth, seventh or tenth frame could be selected. In another embodiment, of the 300 originally collected images or frames, view angles could be used to select a subset of frames (e.g., 30 frames) that are uniformly sampled from the range of viewing angles. (Images with too much “blur” or other optical blemishes could also be selected for winnowing.) These selected images would be fed into CNN 500, which would then output latent variable values for each viewing angle (block 1210). Unfortunately, some of the view or camera angles will not produce good, strong or robust estimates for some of the latent variables. For example, a camera position directly in front of the user will generally not produce a good estimate of the latent variables associated with the length and profile shape of the user's nose or ears. Similarly, a camera angle of the side of the face will not produce a good, strong or robust estimate of the latent variables associated with the width of the user's face or the distance between their eyes. To address this issue, one can weight the contribution of the latent variables to the latent variable's average based on the camera angle. Camera angle may be derived directly from the smart-phone camera's IMU unit, it may be estimated via the CNN, or both. In one or more embodiments, CNN angle output and the IMU angle deltas may be applied as inputs to a Kalman filter that can then generate a good estimate of camera orientation. (Camera rotations around the view axis can be corrected or brought back to a vertical camera orientation by a 2D rotation of the image prior to submitting the image as input to the CNN.) To estimate the contribution of each individual frame's latent variables to the weighted average, the prediction accuracy of the CNN for each latent variable at each viewing angle is determined (block 1215). Once CNN training is complete using a test set of images, those same images may be used together with their corresponding known latent variable values to calculate the standard deviation (

) of the predictions from the known values for each viewing angle (see discussion above regarding FIG. 5 ). This gives an estimate of how well the CNN is able to contribute information about the shape of the face from each viewing angle. In one embodiment, for each selected viewing angle, each latent variable estimate (i.e., CNN output) may be weighted by the normalized 1/σ value for that viewing angle (where the sum of all weights=1.0) (block 1220). Note, other possible weighting schemes may also be used. This operation, in effect, seeks a set of opinions about the likely latent variables' values and weights those opinions by the demonstrated accuracy of those opinions. The result is a set of weighted average latent variables whose values are derived primarily from the viewing angles at which those values can be inferred most accurately. The determined weights may then be applied to the latent variable output for each image in the user neutral set (e.g., the images selected in accordance with block 1205), to generate the user's neutral face image (block 1225).

Phase-2 operations 110 can begin once the neutral and expression models (e.g., 230, 730, 1000 and 915) and CNN (e.g., 500) have been trained. Referring to FIG. 13 , use case 1300 in accordance with one or more embodiments begins with the capture of a temporal sequence of images/frames of a user (block 1305). A video sequence is one example of such a temporal sequence. The obtained image sequence may be fed into the previously trained CNN and generic neutral expression model (block 1310) to yield a generic neutral mesh for the user (block 1315). This generic neutral mesh may be combined with the user's specific neutral mesh as described, for example, with respect to FIG. 12 (block 1320) and the resulting mesh used to drive the a priori determined expression model (block 1325).

In another embodiment, an audio track can be reduced to an image in the form of a mel-frequency cepstrum (MFC) and used to drive both Phase-1 105 and Phase-2 110 operations. Referring to FIG. 14 , MFC 1400 can be used as input to a CNN (e.g., CNN 500) trained with the latent variables of a decoder (e.g., decoder portion 230). To do this, spectrogram 1400 could be fed into a CNN as a slice viewed through a moving window, where the window can be one or more frames wide. In one specific embodiment theses slices would be used to train a recurrent neural network so that their time history was incorporated. Other audio models may also be used.

It has been found that subtle motions of the human face that are left out of a model may be very important to a viewer's acceptance of the generated avatar as “authentic” or “real” (e.g., the sagging of a cheek when speech stops, the movement of lips, and the motion of the tongue). While viewers may not be able to articulate why an avatar without these motions is “not right,” they nonetheless make this decision. To incorporate these types of motions into models in accordance with this disclosure, meshes of these particular aspects of a person may be used to train auto-encoder neural networks as described above. Referring to FIG. 15 , avatar system 1500 drives avatar 1505 through three separate model paths: expression or facial neural network model 1510; tongue neural network model 1515; and lips neural network model 1520. In some embodiments, avatar 1500 may be driven by both audio and video signals in a manner similar to that described for the weighting of different views for the neutral pose estimation (e.g., see discussion with respect to FIG. 13 ). For example, if an audio signal is used as input, it will be able to predict lip and tongue motions fairly well but will not be able to predict facial expressions, facial emotions or eye blinks. In other words, the CNNs driven by audio will have a strong opinion about lip motions for speech (e.g., CNN 1515A and 1520A), but weak or inaccurate opinions about other facial motion. A video based CNN may have strong opinions about general facial expressions and eyelid movement (e.g., 1510A), but weak opinions about lip and tongue motion, particularly if the cameras used are not able to see the lips and tongue clearly. Combining the two sets of inputs with appropriate weightings for each latent variable can give a better set of predictions than from either CNN in isolation. It should be further noted that any number of sub-models (e.g., 1510, 1515 and 1520) may be used, the exact number chosen depending upon the target operating environment and operational goals.

Referring to FIG. 16 , an operation for estimating an emotion from an image is described. The flowchart begins at 1600, where an image is obtained of at least part of a face. In one or more embodiments, the image may be obtained by a front-facing or a back-facing camera. Thus, in one or more embodiments, the face may belong to a user of a device by which the operation is achieved, or may belong to a different user.

The flowchart continues at block 1620, where the electronic device applies an expression CNN to obtain a latent vector for the image. In one or more embodiments, the latent vector for the image may be obtained as described above with respect to FIG. 9 . The expression CNN may be trained by utilizing a set of pairs of data, where each pair includes an image and a latent vector that corresponds to the image. Because the autoencoder is trained, as in FIG. 7 , the autoencoder may assist in obtaining a latent representation from a 3D shape. Thus, the latent vector is generated from the 3D mesh representation may be a compact, uncorrelated representation of a 2D shape. Thus, the latent vector carries within it 3D information. In one or more embodiments, the expression CNN may be trained so that given an image, a latent vector may be estimated. Further, the CNN may be trained with additional contextual information, such as audio data corresponding to a given image. As an example, a tone of voice or a recognized word or phrase may be related to a particular emotion or set of emotions.

The flowchart continues at 1630, where the electronic device compares the latent vector for the image to previously processed latent vectors associated with known emotion types. For example, one or more emotions may be estimated for the image by comparing the latent vector for the image to previously processed latent vectors and the associated emotions to find one or more nearest matches. Optionally, comparing the latent vectors for the image to previously processed latent vectors may include, at 1632, and the previously processed latent vectors in an emotion-based Voronoi Diagram based on associated predetermined motions. For example, in one or more embodiments, the previously-processed images may be the images from which the expression CNN was trained. The image-vector pairs are clustered based on similar characteristics such that images with similar latent vectors are plotted near each other. In one or more embodiments, because the latent vectors are expression-based (e.g., the points in the latent vector are related to 3D features associated with expression), images with similar expressions will be clustered together, and clusters of emotions with similar characteristics may be plotted near each other. The Vonoroi Diagram may include Voronoi Cells which may each be associated with an emotion. At 1634 the current image is plotted against the previously processed latent vectors. In one or more embodiments, the current image is plotted based on the latent vector associated with the image. The current latent vector is compared to the plotted latent vectors in order to determine closest matches. Then, at 1636, the electronic device estimates the emotion based nearest Voronoi Cell or Cells of the Voronoi Diagram. As an example, a current latent vector may be most similar to latent vectors that have a “Happy” designation. Thus, the estimated emotion for the current image may also be “Happy.” In one or more embodiments, the image may be associated with more than one estimated emotion based on best matches.

The flowchart continues at 1640, where the electronic device modifies a functionality of a device based on the estimated emotion. According to one or more embodiments, a functionality of the local device estimating the emotion may be modified. Further, in one or more embodiments, the electronic device estimating the emotion may direct a modified functionality of a different device. As an example, the functionality may be related to a computer-generated reality application. As another example, the functionality may be related to a user experience. For example, if a user is determined to be pleased when content is presented, then additional similar content will be presented, whereas if a user is determined to be angry, then different content will be presented. As another example, if the emotion detection is used during an avatar generation process, material may be generated to supplement the avatar based on the detected emotion. In one or more embodiments, modifying a functionality of the device may include, at 1642, the electronic device may present information regarding the estimated emotion to the user. As an example, the device may display or otherwise present an indication of the detected emotion (e.g., when the image includes a face of the current user or another person). As such, the emotion detection technique may be used for training a person regarding emotion detection.

Referring to FIG. 17 , an example Vonoroi Diagram 1700 is depicted on which the latent vectors may be plotted. The Voronoi Diagram is comprised of Voronoi Cells, which are each associated with an emotion. Although many cells are shown, the Voronoi Diagram 1700 could have very few cells, such as two cells. As described above, the Voronoi Diagram 1700 may be configured such that emotions with similar expression characteristics end up near each other due to the similarity in the values in the latent vectors. For example, as shown, shamed cell 1710 (e.g., the Voronoi Cell associated with a shamed emotion) is closer to a shocked cell 1720 (e.g., the Voronoi Cell associated with a shocked emotion) than either the confidence cell 1730 (e.g., the Voronoi Cell associated with a confidence emotion), or the delighted cell 1740 (e.g., the Voronoi Cell associated with a delighted emotion). Similarly, confidence cell 1730 and delighted cell 1740 may be positioned near each other. In one or more embodiments, the confidence cell 1730 and the delighted cell 1740 may be located near each other because the 3D expression points represented in the latent vector for processed latent vectors associated with the confidence emotion and the delighted emotion have more similarities than the shocked emotion latent vectors or shamed emotion latent vectors. Although the Voronoi Cells and Centers are depicted in 2D for purposes of the figure, it should be understood that the cells and centers may represent a higher dimensional shape depending on the number of dimensions of the latent vectors (e.g., between 24 and 32 dimensions, depending on the architecture of the auto-encoder, according to one or more embodiments).

Some examples of emotions which may be represented include the following: Joyful/Tenderness/Helpless/Defeated/Rageful/Cheerful/Sympathy/Powerless/Bored/Outraged/Content/Adoration/Dreading/Rejected/Hostile/Proud/Fondness/Distrusting/Disillusioned/Bitter/Satisfied/Receptive/Suspicious/Inferior/Hateful/Ex cited/Interested/Cautious/Confused/Scornful/Amused/Delighted/Disturbed/Grief- stricken/Spiteful/Elated/Shocked/Overwhelmed/Helpless/Vengeful/Enthusiastic/Exhilarated/Uncomfortable/Isolated/Disliked/Optimistic/Dismayed/Guilty/Numb/Resentful/Elated/Amazed/Hurt/Regretful/Trusting/Delighted/Confused/Lonely/Amb ivalent/Alienated/Calm/Stunned/Melancholy/Exhausted/Bitter/Relaxed/Interested/Depressed/Insecure/Insulted/Relieved/Intrigued/Hopeless/Disgusted/Indifferent/Hopeful/Absorbed/Sad/Pity/Pleased/Curious/Guilty/Revulsion/Confident/Anti cipating/Hurt/Contempt/Brave/Eager/Lonely/Weary/Comfortable/Hesitant/Regretful/Bored/Safe/Fearful/Depressed/Preoccupied/Happy/Anxious/Hopeless/Angry/Love/Worried/Sorrow/Jealous/Lust/Scared/Uncertain/Envious/Aroused/Insecure/Angui shed/Annoyed/Tender/Rejected/Disappointed/Humiliated/Compassionate/Horrified/Self conscious/Irritated/Caring/Alarmed/Shamed/Aggravated/Infatuated/Shocked/Embarrassed/Restless/Concern/Panicked/Humiliated/Grumpy/Trust/Afraid/Disgraced/Awkward/Liking/Nervous/Uncomfortable/Exasperated/Attraction/Disoriented/Neglec ted/Frustrated.

Referring to FIG. 18 , a simplified functional block diagram of illustrative electronic device 1800 is shown according to one or more embodiments. Electronic device 1800 may be used to acquire user images (e.g., a temporal sequence of image frames) and generate and animate an avatar in accordance with this disclosure. As noted above, illustrative electronic device 1800 could be a mobile telephone (aka, a smart-phone), a personal media device or a notebook computer system. As shown, electronic device 1800 may include lens assemblies 1805 and image sensors 1810 for capturing images of a scene (e.g., a user's face). By way of example, lens assembly 1805 may include a first assembly configured to capture images in a direction away from the device's display 1820 (e.g., a rear-facing lens assembly) and a second lens assembly configured to capture images in a direction toward or congruent with the device's display 1820 (e.g., a front facing lens assembly). In one embodiment, each lens assembly may have its own sensor (e.g., element 1810). In another embodiment, each lens assembly may share a common sensor. In addition, electronic device 1800 may include image processing pipeline (IPP) 1815, display element 1820, user interface 1825, processor(s) 1830, graphics hardware 1835, audio circuit 1840, image processing circuit 1845, memory 1850, storage 1855, sensors 1860, communication interface 1865, and communication network or fabric 1870.

Lens assembly 1805 may include a single lens or multiple lens, filters, and a physical housing unit (e.g., a barrel). One function of lens assembly 1805 is to focus light from a scene onto image sensor 1810. Image sensor 1810 may, for example, be a CCD (charge-coupled device) or CMOS (complementary metal-oxide semiconductor) imager. IPP 1815 may process image sensor output (e.g., RAW image data from sensor 1810) to yield a HDR image, image sequence or video sequence. More specifically, IPP 1815 may perform a number of different tasks including, but not be limited to, black level removal, de-noising, lens shading correction, white balance adjustment, demosaic operations, and the application of local or global tone curves or maps. IPP 1815 may comprise a custom designed integrated circuit, a programmable gate-array, a central processing unit (CPU), a graphical processing unit (GPU), memory, or a combination of these elements (including more than one of any given element). Some functions provided by IPP 1815 may be implemented at least in part via software (including firmware). Display element 1820 may be used to display text and graphic output as well as receiving user input via user interface 1825. In one embodiment, display element 1820 may be used to display the avatar of an individual communicating with the user of device 1800. Display element 1820 may also be a touch-sensitive display screen. User interface 1825 can also take a variety of other forms such as a button, keypad, dial, a click wheel, and keyboard. Processor 1830 may be a system-on-chip (SOC) such as those found in mobile devices and include one or more dedicated CPUs and one or more GPUs. Processor 1830 may be based on reduced instruction-set computer (RISC) or complex instruction-set computer (CISC) architectures or any other suitable architecture and each computing unit may include one or more processing cores. Graphics hardware 1835 may be special purpose computational hardware for processing graphics and/or assisting processor 1830 perform computational tasks. In one embodiment, graphics hardware 1835 may include one or more programmable GPUs each of which may have one or more cores. Audio circuit 1840 may include one or more microphones, one or more speakers and one or more audio codecs. Image processing circuit 1845 may aid in the capture of still and video images from image sensor 1810 and include at least one video codec. Image processing circuit 1845 may work in concert with IPP 1815, processor 1830 and/or graphics hardware 1835. Images, once captured, may be stored in memory 1850 and/or storage 1855. Memory 1850 may include one or more different types of media used by IPP 1815, processor 1830, graphics hardware 1835, audio circuit 1840, and image processing circuitry 1845 to perform device functions. For example, memory 1850 may include memory cache, read-only memory (ROM), and/or random access memory (RAM). Storage 1855 may store media (e.g., audio, image and video files), computer program instructions or software, preference information, device profile information, pre-generated models (e.g., generic neutral expression model 230, CNN 500, expression model 730, 915, 1000), frameworks, and any other suitable data. When executed by processor module 1830 and/or graphics hardware 1835 such computer program code may implement one or more of the methods described herein (e.g., see FIGS. 1-15 ). Storage 1855 may include one more non-transitory storage mediums including, for example, magnetic disks (fixed, floppy, and removable) and tape, optical media such as CD-ROMs and digital video disks (DVDs), and semiconductor memory devices such as Electrically Programmable Read-Only Memory (EPROM), and Electrically Erasable Programmable Read-Only Memory (EEPROM). Device sensors 1860 may include, but need not be limited to, one or more of an optical activity sensor, an optical sensor array, an accelerometer, a sound sensor, a barometric sensor, a proximity sensor, an ambient light sensor, a vibration sensor, a gyroscopic sensor, a compass, a magnetometer, a thermistor sensor, an electrostatic sensor, a temperature sensor, and an opacity sensor. Communication interface 1865 may be used to connect device 1800 to one or more networks. Illustrative networks include, but are not limited to, a local network such as a universal serial bus (USB) network, an organization's local area network, and a wide area network such as the Internet. Communication interface 1865 may use any suitable technology (e.g., wired or wireless) and protocol (e.g., Transmission Control Protocol (TCP), Internet Protocol (IP), User Datagram Protocol (UDP), Internet Control Message Protocol (ICMP), Hypertext Transfer Protocol (HTTP), Post Office Protocol (POP), File Transfer Protocol (FTP), and Internet Message Access Protocol (IMAP)). Communication network or fabric 1870 may be comprised of one or more continuous (as shown) or discontinuous communication links and be formed as a bus network, a communication network, or a fabric comprised of one or more switching devices (e.g., a cross-bar switch).

Referring now to FIG. 19 , a simplified functional block diagram of illustrative multifunction electronic device 1900 is shown according to one embodiment. Each of electronic devices may be a multifunctional electronic device, or may have some or all of the described components of a multifunctional electronic device described herein. Multifunction electronic device 1900 may include processor 1905, display 1910, user interface 1915, graphics hardware 1920, device sensors 1925 (e.g., proximity sensor/ambient light sensor, accelerometer and/or gyroscope), microphone 1930, audio codec(s) 1935, speaker(s) 1940, communications circuitry 1945, digital image capture circuitry 1950 (e.g., including camera system) video codec(s) 1955 (e.g., in support of digital image capture unit), memory 1960, storage device 1965, and communications bus 1970. Multifunction electronic device 1900 may be, for example, a digital camera or a personal electronic device such as a personal digital assistant (PDA), personal music player, mobile telephone, or a tablet computer.

Processor 1905 may execute instructions necessary to carry out or control the operation of many functions performed by device 1900 (e.g., such as the generation and/or processing of images as disclosed herein). Processor 1905 may, for instance, drive display 1910 and receive user input from user interface 1915. User interface 1915 may allow a user to interact with device 1900. For example, user interface 1915 can take a variety of forms, such as a button, keypad, dial, a click wheel, keyboard, display screen and/or a touch screen. Processor 1905 may also, for example, be a system-on-chip such as those found in mobile devices and include a dedicated graphics processing unit (GPU). Processor 1905 may be based on reduced instruction-set computer (RISC) or complex instruction-set computer (CISC) architectures or any other suitable architecture and may include one or more processing cores. Graphics hardware 1920 may be special purpose computational hardware for processing graphics and/or assisting processor 1905 to process graphics information. In one embodiment, graphics hardware 1920 may include a programmable GPU.

Image capture circuitry 1950 may include two (or more) lens assemblies 1980A and 1980B, where each lens assembly may have a separate focal length. For example, lens assembly 1980A may have a short focal length relative to the focal length of lens assembly 1980B. Each lens assembly may have a separate associated sensor element 1990. Alternatively, two or more lens assemblies may share a common sensor element. Image capture circuitry 1950 may capture still and/or video images. Output from image capture circuitry 1950 may be processed, at least in part, by video codec(s) 1955 and/or processor 1905 and/or graphics hardware 1920, and/or a dedicated image processing unit or pipeline incorporated within circuitry 1965. Images so captured may be stored in memory 1960 and/or storage 1965.

Sensor and camera circuitry 1950 may capture still and video images that may be processed in accordance with this disclosure, at least in part, by video codec(s) 1955 and/or processor 1905 and/or graphics hardware 1920, and/or a dedicated image processing unit incorporated within circuitry 1950. Images so captured may be stored in memory 1960 and/or storage 1965. Memory 1960 may include one or more different types of media used by processor 1905 and graphics hardware 1920 to perform device functions. For example, memory 1960 may include memory cache, read-only memory (ROM), and/or random access memory (RAM). Storage 1965 may store media (e.g., audio, image and video files), computer program instructions or software, preference information, device profile information, and any other suitable data. Storage 1965 may include one more non-transitory computer-readable storage mediums including, for example, magnetic disks (fixed, floppy, and removable) and tape, optical media such as CD-ROMs and digital video disks (DVDs), and semiconductor memory devices such as Electrically Programmable Read-Only Memory (EPROM), and Electrically Erasable Programmable Read-Only Memory (EEPROM). Memory 1960 and storage 1965 may be used to tangibly retain computer program instructions or code organized into one or more modules and written in any desired computer programming language. When executed by, for example, processor 1905 such computer program code may implement one or more of the methods described herein.

In one or more embodiments, the electronic device may allow a user to estimate an emotion of a face in a physical environment, or in order to interact with a computer-generated reality. A physical environment refers to a physical world that people can sense and/or interact with without aid of electronic systems. Physical environments, such as a physical park, include physical articles, such as physical trees, physical buildings, and physical people. People can directly sense and/or interact with the physical environment, such as through sight, touch, hearing, taste, and smell.

In contrast, a computer-generated reality (CGR) environment refers to a wholly or partially simulated environment that people sense and/or interact with via an electronic system. In CGR, a subset of a person's physical motions, or representations thereof, are tracked, and, in response, one or more characteristics of one or more virtual objects simulated in the CGR environment are adjusted in a manner that comports with at least one law of physics. For example, a CGR system may detect a person's head turning and, in response, adjust graphical content and an acoustic field presented to the person in a manner similar to how such views and sounds would change in a physical environment. In some situations (e.g., for accessibility reasons), adjustments to characteristic(s) of virtual object(s) in a CGR environment may be made in response to representations of physical motions (e.g., vocal commands).

A person may sense and/or interact with a CGR object using any one of their senses, including sight, sound, touch, taste, and smell. For example, a person may sense and/or interact with audio objects that create 3D or spatial audio environment that provides the perception of point audio sources in 3D space. In another example, audio objects may enable audio transparency, which selectively incorporates ambient sounds from the physical environment with or without computer-generated audio. In some CGR environments, a person may sense and/or interact only with audio objects.

Examples of CGR include virtual reality and mixed reality. A virtual reality (VR) environment refers to a simulated environment that is designed to be based entirely on computer-generated sensory inputs for one or more senses. A VR environment comprises a plurality of virtual objects with which a person may sense and/or interact. For example, computer-generated imagery of trees, buildings, and avatars representing people are examples of virtual objects. A person may sense and/or interact with virtual objects in the VR environment through a simulation of the person's presence within the computer-generated environment, and/or through a simulation of a subset of the person's physical movements within the computer-generated environment.

In contrast to a VR environment, which is designed to be based entirely on computer-generated sensory inputs, a mixed reality (MR) environment refers to a simulated environment that is designed to incorporate sensory inputs from the physical environment, or a representation thereof, in addition to including computer-generated sensory inputs (e.g., virtual objects). On a virtuality continuum, a mixed reality environment is anywhere between, but not including, a wholly physical environment at one end and virtual reality environment at the other end.

In some MR environments, computer-generated sensory inputs may respond to changes in sensory inputs from the physical environment. Also, some electronic systems for presenting an MR environment may track location and/or orientation with respect to the physical environment to enable virtual objects to interact with real objects (that is, physical articles from the physical environment or representations thereof). For example, a system may account for movements so that a virtual tree appears stationery with respect to the physical ground.

Examples of mixed realities include augmented reality and augmented virtuality. An augmented reality (AR) environment refers to a simulated environment in which one or more virtual objects are superimposed over a physical environment, or a representation thereof. For example, an electronic system for presenting an AR environment may have a transparent or translucent display through which a person may directly view the physical environment. The system may be configured to present virtual objects on the transparent or translucent display, so that a person, using the system, perceives the virtual objects superimposed over the physical environment. Alternatively, a system may have an opaque display and one or more imaging sensors that capture images or video of the physical environment, which are representations of the physical environment. The system composites the images or video with virtual objects, and presents the composition on the opaque display. A person, using the system, indirectly views the physical environment by way of the images or video of the physical environment, and perceives the virtual objects superimposed over the physical environment. As used herein, a video of the physical environment shown on an opaque display is called “pass-through video,” meaning a system uses one or more image sensor(s) to capture images of the physical environment, and uses those images in presenting the AR environment on the opaque display. Further alternatively, a system may have a projection system that projects virtual objects into the physical environment, for example, as a hologram or on a physical surface, so that a person, using the system, perceives the virtual objects superimposed over the physical environment.

An augmented reality environment also refers to a simulated environment in which a representation of a physical environment is transformed by computer-generated sensory information. For example, in providing pass-through video, a system may transform one or more sensor images to impose a select perspective (e.g., viewpoint) different than the perspective captured by the imaging sensors. As another example, a representation of a physical environment may be transformed by graphically modifying (e.g., enlarging) portions thereof, such that the modified portion may be representative but not photorealistic versions of the originally captured images. As a further example, a representation of a physical environment may be transformed by graphically eliminating or obfuscating portions thereof.

An augmented virtuality (AV) environment refers to a simulated environment in which a virtual or computer generated environment incorporates one or more sensory inputs from the physical environment. The sensory inputs may be representations of one or more characteristics of the physical environment. For example, an AV park may have virtual trees and virtual buildings, but people with faces photorealistically reproduced from images taken of physical people. As another example, a virtual object may adopt a shape or color of a physical article imaged by one or more imaging sensors. As a further example, a virtual object may adopt shadows consistent with the position of the sun in the physical environment.

There are many different types of electronic systems that enable a person to sense and/or interact with various CGR environments. Examples include head mounted systems, projection-based systems, heads-up displays (HUDs), vehicle windshields having integrated display capability, windows having integrated display capability, displays formed as lenses designed to be placed on a person's eyes (e.g., similar to contact lenses), headphones/earphones, speaker arrays, input systems (e.g., wearable or handheld controllers with or without haptic feedback), smartphones, tablets, and desktop/laptop computers. A head mounted system may have one or more speaker(s) and an integrated opaque display. Alternatively, a head mounted system may be configured to accept an external opaque display (e.g., a smartphone). The head mounted system may incorporate one or more imaging sensors to capture images or video of the physical environment, and/or one or more microphones to capture audio of the physical environment. Rather than an opaque display, a head mounted system may have a transparent or translucent display. The transparent or translucent display may have a medium through which light representative of images is directed to a person's eyes. The display may utilize digital light projection, OLEDs, LEDs, uLEDs, liquid crystal on silicon, laser scanning light source, or any combination of these technologies. The medium may be an optical waveguide, a hologram medium, an optical combiner, an optical reflector, or any combination thereof. In one embodiment, the transparent or translucent display may be configured to become opaque selectively. Projection-based systems may employ retinal projection technology that projects graphical images onto a person's retina. Projection systems also may be configured to project virtual objects into the physical environment, for example, as a hologram or on a physical surface.

As described above, one aspect of the present technology is the gathering and use of data available from various sources to estimate emotion from an image of a face. The present disclosure contemplates that in some instances, this gathered data may include personal information data that uniquely identifies or can be used to contact or locate a specific person. Such personal information data can include demographic data, location-based data, telephone numbers, email addresses, twitter ID's, home addresses, data or records relating to a user's health or level of fitness (e.g., vital signs measurements, medication information, exercise information), date of birth, or any other identifying or personal information.

The present disclosure recognizes that the use of such personal information data, in the present technology, can be used to the benefit of users. For example, the personal information data can be used to train expression models. Accordingly, use of such personal information data enables users to estimate emotion from an image of a face. Further, other uses for personal information data that benefit the user are also contemplated by the present disclosure. For instance, health and fitness data may be used to provide insights into a user's general wellness, or may be used as positive feedback to individuals using technology to pursue wellness goals.

The present disclosure contemplates that the entities responsible for the collection, analysis, disclosure, transfer, storage, or other use of such personal information data will comply with well-established privacy policies and/or privacy practices. In particular, such entities should implement and consistently use privacy policies and practices that are generally recognized as meeting or exceeding industry or governmental requirements for maintaining personal information data private and secure. Such policies should be easily accessible by users, and should be updated as the collection and/or use of data changes. Personal information from users should be collected for legitimate and reasonable uses of the entity and not shared or sold outside of those legitimate uses. Further, such collection/sharing should occur after receiving the informed consent of the users. Additionally, such entities should consider taking any needed steps for safeguarding and securing access to such personal information data and ensuring that others with access to the personal information data adhere to their privacy policies and procedures. Further, such entities can subject themselves to evaluation by third parties to certify their adherence to widely accepted privacy policies and practices. In addition, policies and practices should be adapted for the particular types of personal information data being collected and/or accessed and adapted to applicable laws and standards, including jurisdiction-specific considerations. For instance, in the US, collection of or access to certain health data may be governed by federal and/or state laws, such as the Health Insurance Portability and Accountability Act (HIPAA); whereas health data in other countries may be subject to other regulations and policies and should be handled accordingly. Hence different privacy practices should be maintained for different personal data types in each country.

It is to be understood that the above description is intended to be illustrative, and not restrictive. The material has been presented to enable any person skilled in the art to make and use the disclosed subject matter as claimed and is provided in the context of particular embodiments, variations of which will be readily apparent to those skilled in the art (e.g., some of the disclosed embodiments may be used in combination with each other). Accordingly, the specific arrangement of steps or actions shown in FIGS. 1, 2, 4-8, 11-13, 16 or the arrangement of elements shown in FIGS. 3, 10, 15, and 18-19 should not be construed as limiting the scope of the disclosed subject matter. The scope of the invention therefore should be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled. In the appended claims, the terms “including” and “in which” are used as the plain-English equivalents of the respective terms “comprising” and “wherein.” 

1. A non-transitory computer readable medium comprising computer readable code executable by one or more processors to: obtain a latent vector comprising a set of values representative of three-dimensional (3D) features of a face based on one or more images of the face; compare the set of values in the latent vector to one or more reference latent vectors, wherein each of the one or more reference latent vectors are classified with at least one reference emotion type; and estimate an emotion type for the obtained latent vector based on a comparison with the one or more reference latent vectors, wherein the estimated emotion type is identified from the least one reference emotion type.
 2. The non-transitory computer readable medium of claim 1, wherein the computer readable code to obtain the latent vector comprises computer readable code to: capture one or images of at least part of a face; and apply the one or more images to an expression convolutional neural network.
 3. The non-transitory computer readable medium of claim 1, wherein the computer readable code to compare the set of values in the latent vector to one or more reference latent vectors comprises computer readable code to: determine a nearest match between the obtained latent vector and the one or more reference latent vectors.
 4. The non-transitory computer readable medium of claim 1, wherein the one or more images comprises one or more two dimensional (2D) images.
 5. The non-transitory computer readable medium of claim 1, further comprising computer readable code to: supplement avatar data associated with the face based on the estimated emotion type.
 6. The non-transitory computer readable medium of claim 1, further comprising computer readable code to: modify a functionality of a device based on the estimated emotion.
 7. The non-transitory computer readable medium of claim 1, further comprising computer readable code to: present an indication of the estimated emotion type.
 8. A method comprising: obtaining a latent vector comprising a set of values representative of three-dimensional (3D) features of a face based on one or more images of the face; comparing the set of values in the latent vector to one or more reference latent vectors, wherein each of the one or more reference latent vectors are classified with at least one reference emotion type; and estimating an emotion type for the obtained latent vector based on a comparison with the one or more reference latent vectors, wherein the estimated emotion type is identified from the least one reference emotion type.
 9. The method of claim 8, wherein obtaining the latent vector comprises: capturing one or images of at least part of a face; and applying the one or more images to an expression convolutional neural network.
 10. The method of claim 8, wherein comparing the set of values in the latent vector to one or more reference latent vectors comprises: determining a nearest match between the obtained latent vector and the one or more reference latent vectors.
 11. The method of claim 8, wherein the one or more images comprises one or more two dimensional (2D) images.
 12. The method of claim 8, further comprising: supplementing avatar data associated with the face based on the estimated emotion type.
 13. The method of claim 8, further comprising: modifying a functionality of a device based on the estimated emotion.
 14. The method of claim 8, further comprising: presenting an indication of the estimated emotion type.
 15. A system comprising: one or more processors; and one or more computer readable media comprising computer readable code executable by one or more processors to: obtain a latent vector comprising a set of values representative of three-dimensional (3D) features of a face based on one or more images of the face; compare the set of values in the latent vector to one or more reference latent vectors, wherein each of the one or more reference latent vectors are classified with at least one reference emotion type; and estimate an emotion type for the obtained latent vector based on a comparison with the one or more reference latent vectors, wherein the estimated emotion type is identified from the least one reference emotion type.
 16. The system of claim 15, wherein the computer readable code to obtain the latent vector comprises computer readable code to: capture one or images of at least part of a face; and apply the one or more images to an expression convolutional neural network.
 17. The system of claim 15, wherein the computer readable code to compare the set of values in the latent vector to one or more reference latent vectors comprises computer readable code to: determine a nearest match between the obtained latent vector and the one or more reference latent vectors.
 18. The system of claim 15, wherein the one or more images comprises one or more two dimensional (2D) images.
 19. The system of claim 15, further comprising computer readable code to: supplement avatar data associated with the face based on the estimated emotion type.
 20. The system of claim 15, further comprising computer readable code to: modify a functionality of a device based on the estimated emotion. 